package com.lmf.springboot.web;

import com.lmf.springboot.Model.User;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class MyController {
    @RequestMapping(value = "/literal")
    public String literal(Model model) {
        model.addAttribute("success",true);
        model.addAttribute("flag",false);
        User user = new User();
        user.setId(1004);
        user.setNick("贾玲");
        user.setPhone("13777777777");
        user.setAddress("北京市");
        model.addAttribute("user",user);
        model.addAttribute("totalRows",123);
        model.addAttribute("totalPage",22);
        model.addAttribute("currentPage",5);
        return "literal"; }
}
